package com.training.action.chenhao;



import java.text.SimpleDateFormat;
import java.util.List;

import com.opensymphony.xwork2.ActionSupport;
import com.training.pojo.chengshu.UDept;
import com.training.pojo.chengshu.UUser;
import com.training.service.chenhao.EmpService;

public class EditempAction extends ActionSupport{
    private String uid;
    private UUser emp;
    private List<UDept> deptlist;
    private EmpService empser;
	public String execute(){
		//int id=Integer.parseInt(uid);
		emp=empser.empdetail(uid);
		
		deptlist=empser.deptname();
    	return SUCCESS;
    }
	public String getUid() {
		return uid;
	}
	public void setUid(String uid) {
		this.uid = uid;
	}
	public UUser getEmp() {
		return emp;
	}
	public void setEmp(UUser emp) {
		this.emp = emp;
	}
	public EmpService getEmpser() {
		return empser;
	}
	public void setEmpser(EmpService empser) {
		this.empser = empser;
	}
	public List<UDept> getDeptlist() {
		return deptlist;
	}
	public void setDeptlist(List<UDept> deptlist) {
		this.deptlist = deptlist;
	}
	
}
